package newhiant.hianto2o.com.model;

import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.view.View;
import android.widget.Toast;

import java.util.Observable;

/**
 * Created by Administrator on 2017/7/29 0029.
 */

public class User {

    public int age;
    public String name;
    public String sex;
    private String icon;


    public User(int age, String name, String sex, String icon) {
        this.age = age;
        this.name = name;
        this.sex = sex;
        this.icon = icon;
    }

    public void onNameClick(View view) {
        Toast.makeText(view.getContext(), name + "---is onclick", Toast.LENGTH_SHORT).show();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public boolean onSexLongClick(View view) {
        Toast.makeText(view.getContext(), sex + "---is onSexLongClick", Toast.LENGTH_SHORT).show();
        return true;
    }


    public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return this.sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
